<layout name='layout' />

<div class="admin-main">

	<blockquote class="layui-elem-quote">
		<button class="layui-btn layui-btn-small" onclick="window.location.reload();">
			<i class="fa fa-refresh"></i> 刷新
		</button>

		<div class="search">
			<form class="layui-form" method="post" action="<{:U('Finance/index')}>">
			<div class="layui-input-inline">
			<select name="type" id="type">
				<option value="0">全部</option>
				<volist name="cate" id="vo">
				<option value='<{$key}>'><{$vo['name']}></option>
				</volist>
			</select>
			</div>
			<div class="layui-input-inline">
			<input type="text" name="mobile" placeholder="手机号码" class="layui-input layui-btn-small">
			</div>
			<button type="submit" class="layui-btn" lay-submit=""><i class="layui-icon">&#xe615;</i> 搜索</button>
			<a href="<{:U('Link/index')}>" class="layui-btn layui-btn-primary">重置</a>
			</form>
		</div>
	</blockquote>

	<fieldset class="layui-elem-field">
		<legend>数据列表</legend>
		<div class="layui-field-box">
			<table class="site-table table-hover">
				<thead>
					<tr>					
						<th>会员</th>
						<th>类型</th>
						<th>金额</th>
						<th>备注</th>
						<th>日期</th>
					</tr>
				</thead>
				<tbody>
					<volist name="list" id="vo">
					<tr>
						<td><{$vo.username}></td>
						<td><{$cate[$vo['type']]['name']}></td>
						<td><span class="red"><{$vo.money}></span></td>
						<td><{$vo.msg}></td>	  
						<td><{$vo.createTime|date='Y-m-d H:i:s',###}></td>
					</tr>	
					</volist>						
				</tbody>
			</table>
		</div>
	</fieldset>
	<div class="admin-table-page">
		<div id="page" class="page"><{$page}></div>
	</div>
</div>

<script type="text/javascript">
$("#type").val("<{$type}>");
</script>
		
